package cate.common.table.res.formations.sheet;

import cate.common.table.ESheet;
import cate.common.table.res.formations.row.FormationsAttrRow;

public class FormationsAttrSheet extends ESheet<FormationsAttrRow> {
    @Override
    public String getSheetName() {
        return "阵型属性";
    }

    public FormationsAttrRow getRow(int type, int level) {
        return getList().stream().filter(e -> e.type == type && e.level == level).findAny().orElse(null);
    }
}
